﻿@{
    ViewBag.Title = "Home Page";
}

<!-- START QUOTE -->
<div class="quote one columns"> 知识管理,智慧分享,低碳生活. </div>
<!-- END QUOTE --> 
    
<!-- START SLIDER -->
<div class="skywalkerSlider">
    <ul class="skywalkerSliderContent">
    @foreach (var item_1 in (IEnumerable<KnowledgeCommunity.Model.Slider>)ViewData["SliderList"])
    {
        <li class="skywalkerSliderContentItem skywalkerSliderContentActive"> <img class="skywalkerSliderContentItemImage" src="@Url.Content(item_1.ImgUrl)" alt="" />
            <div class="skywalkerSliderContentItemBox">
            <div class="skywalkerSliderContentItemBoxPrev"></div>
            <div class="skywalkerSliderContentItemBoxNext"></div>
            <div class="skywalkerSliderContentItemBoxInfo">
                <div class="skywalkerSliderContentItemBoxInfoTitle">
                <div class="skywalkerSliderContentItemBoxInfoTitleBackground"> </div>
                <div class="skywalkerSliderContentItemBoxInfoTitleText"><a href="@item_1.LinkTo">@item_1.Title </a></div>
                </div>
                <div class="skywalkerSliderContentItemBoxInfoText">
                <div class="skywalkerSliderContentItemBoxInfoTextBackground"> </div>
                <div class="skywalkerSliderContentItemBoxInfoTextContent"><a href="@item_1.LinkTo">@item_1.Content</a></div>
                </div>
            </div>
            </div>
        </li>
    }
    </ul>
    <ul  class="skywalkerSliderPreview">
    @foreach (var item_2 in (IEnumerable<KnowledgeCommunity.Model.Slider>)ViewData["SliderList"])
    {
        <li class="skywalkerSliderPreviewItem skywalkerSliderPreviewActive"> <img class="skywalkerSliderPreviewItemImage" src="@Url.Content(item_2.ImgUrl)" alt="" />
            <div class="skywalkerSliderPreviewItemOpacity"></div>
        </li>
    }
    </ul>
    <div class="skywalkerSliderMarker"></div>
    <div class="skywalkerSliderResponsiveLeft"></div>
    <div class="skywalkerSliderResponsiveRight"></div>
</div>
<!-- END SLIDER --> 
    
<!-- START WORKS -->
<div class="works carousel">
    <div class="carouselNext"></div>
    <div class="carouselBack"></div>
    <div class="title">商品创意</div>
    <div class="clear"></div>
    <div class="titleline"></div>
    <div class="carouselView">
    <div class="carouselContainer">
       @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Commodity>)ViewData["CommodityList"])
       {
        <div class="columns four">
        <div class="work"> 
            <a href="@Url.Action("Details", "Commodity", new { id=item.Id})" rel="prettyPhoto[a]" class="pretty" title="@item.Title">
              <span></span><img src="@Url.Content(item.Logo)" alt="cards" />
            </a>
            <h3><a href="@Url.Action("Details", "Commodity", new { id=item.Id})">@item.Title</a></h3>
            <h4>价格：@item.CurrentPrice ￥ ,数量：@item.Count </h4>
        </div>
        </div>
       }
        <div class="clear"></div>
    </div>
    </div>
</div>
<!-- END WORKS --> 
<div class="separate"></div>
<div class="columns three">
    <h6>最新动态</h6>
    <ul>
    @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Topic>)ViewData["TopicList"])
    {
    <li><a href="@Url.Action("Details", "Topic", new { id = item.Id })">@item.Title</a></li>
    }
    </ul>
</div>
<div class="columns two-thirds_last">
    <h6>校园文档</h6>
    <ul>
    @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Document>)ViewData["DocumentList"])
    {
    <li><a href="@Url.Action("Details", "Document", new { id = item.Id })">@item.Title</a></li>
    }
    </ul>
</div>
<div class="separate"></div> 
<!-- START WORKS -->
<div class="blogs carousel">
    <div class="carouselNext"></div>
    <div class="carouselBack"></div>
    <div class="title">知识百科</div>
    <div class="clear"></div>
    <div class="titleline"></div>
    <div class="carouselView">
    <div class="carouselContainer">
        @foreach (var item in (IEnumerable<KnowledgeCommunity.Model.Knowledge>)ViewData["KnowledgeList"])
        {
        <div class="columns four">
        <div class="newpost">
            <div class="viewpost"><a href="@Url.Action("Details", "Knowledge", new { id = item.Id })">@item.Title</a></div>
            <a href="@Url.Action("Details", "Knowledge", new { id = item.Id })" class="fade" title="@item.Title"><span></span><img src="@Url.Content("~/Content/images/images/walker_9.jpg")" alt="cards" /></a>
            <div class="postphoto"></div>
            <h2><a href="@Url.Action("Details", "Knowledge", new { id = item.Id })">@item.Title</a></h2>
            <p>@item.UserName / @item.AddTime / @item.ClickNum </p>
        </div>
        </div>
        }
        <div class="clear"></div>
    </div>
    </div>
</div>
<!-- END WORKS --> 